rem mvn package
SET J2EE_HOME=d:\Programs\Java\glassfish3\glassfish

call  %j2ee_home%\bin\asadmin.bat stop-domain

copy Server\target\Server-1.0.jar  %j2ee_home%\lib\
copy ServerApi\target\ServerApi-1.0.jar %j2ee_home%\lib\
copy GameProviderApi\target\GameProviderApi-1.0.jar %j2ee_home%\lib\
copy TicTacToe\target\TicTacToe-1.0.jar %j2ee_home%\lib\


call %j2ee_home%\bin\asadmin start-domain

call %j2ee_home%\bin\asadmin undeploy TicTacToe-1.0
call %j2ee_home%\bin\asadmin undeploy Server-1.0

call %j2ee_home%\bin\asadmin deploy %j2ee_home%\lib\TicTacToe-1.0.jar
call %j2ee_home%\bin\asadmin deploy %j2ee_home%\lib\Server-1.0.jar


